﻿@model PhotoBlog.Models.BlogM

@if (Model != null)
{
    foreach (var post in Model.Posts)
    {
        <div class="post-b">
            <div class="post-content col-lg-12">
                @Html.ActionLink(post.HeaderName, "Posts", new { id = post.BlogId }, new { @class = "h2 blog-link" })
                <span class="h5 post-d">
                    @post.DatePublish.ToShortDateString()
                </span>
            </div>
            <div class="clearfix"></div>
        </div>
    }
}